<!DOCTYPE html>
<html>

<head>
    <title>登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="element-ui/index.css" />
    <style>
        body {
            background-color: #f5f5f5;
        }
        .login-box {
            max-width: 378px;
            margin: 200px auto;
            padding: 44px;
            display: block;
            border-radius: 6px;
            background: #fff;
            box-shadow: 0 2px 14px 2px rgb(0 0 0 / 10%);
        }
    </style>
</head>

<body>
    <div id="app">
        <el-form :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="100px" class="login-box">
            <el-form-item label="用户名" prop="username">
                <el-input type="text" v-model="ruleForm.username" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item label="密码" prop="password">
                <el-input type="password" v-model="ruleForm.password" autocomplete="off"></el-input>
            </el-form-item>
            <el-form-item>
                <el-button type="primary" @click="submitForm('ruleForm')" icon="el-icon-lock">提交</el-button>
            </el-form-item>
        </el-form>
    </div>
    <script src="js/vue.min-2.4.js"></script>
    <script src="element-ui/index.js"></script>
    <script src="js/util.js"></script>
    <script src="js/login.js"></script>
</body>

</html>